public class MyThread extends Thread {

    private long waitTime;

    public MyThread(long waitTime) {
        this.waitTime = waitTime;
    }

    @Override
    public void run() {
        for (int i = 1; i <= 3; i++) {
            System.out.println(getName() + ": " + i);
            try {
                // 每次打印后，睡眠一次，睡眠时长为创建当前类对象时指定的时间。
                sleep(/* TODO */);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
        }
    }
}
